#ifndef SEQLIST_H_
#define SEQLIST_H_

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
typedef int SLDateType;

typedef struct SeqList
{
    SLDateType *s;
    int size;     //存储数据个数
    int capacity; //存储空间大小
} SeqList;

void SeqListPrint(const SeqList *psl);             //输出顺序表内容
void SeqListInit(SeqList *psl);                    //初始化顺序表
void SeqListDestroy(SeqList *psl);                 //释放顺序表
void SeqListCheckCapacity(SeqList *psl);           //扩容
void SeqListPushBack(SeqList *psl, SLDateType x);  //尾插
void SeqListPopBack(SeqList *psl);                 //尾删
void SeqListPushFront(SeqList *psl, SLDateType x); //头插
void SeqListPopFront(SeqList *psl);                //头删

// 在pos位置插入x
void SeqListInsert(SeqList *psl, size_t pos, SLDateType x);
//删除pos位置的数据
void SeqListErase(SeqList *psl, size_t pos);

//查找内容
int SeqListFind(SeqList *psl, int x);

#endif